package com.chenglai.seckill.feign;

import com.chenglai.commonutils.common.Result;
import com.chenglai.seckill.entity.MainOrder;
import com.chenglai.seckill.entity.Order;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author yawang
 * @create 2023/11/29 09:54:59
 **/
@FeignClient(value = "goods", fallbackFactory = OrderFallback.class)
public interface GoodsService {
    @GetMapping("/goods/listGroupGoods")
    Result listGroupGoods(Integer shopId);

    @GetMapping("/toAddMainOrders")
    @ApiOperation(value = "添加预付订单")
    Result toAddMainOrders(MainOrder mainOrder);
}
